﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using CourseArraging.Common;
using Microsoft.Reporting.WinForms;

namespace CourseArraging.Frm.bbxx
{
    /// <summary>
    /// 版权所有
    /// 石世特@温州医学院 sst330381@gmail.com
    /// </summary> 
    public partial class FrmStuBb : Form
    {
        public FrmStuBb()
        {
            InitializeComponent();
        }

        public FrmStuBb(DataTable dt)
            : this()
        {
            dt.Columns["学员编号"].ColumnName = "stu_info_no";
            dt.Columns["学员姓名"].ColumnName = "stu_info_name";
            dt.Columns["性别"].ColumnName = "stu_info_sex";
            dt.Columns["固定电话"].ColumnName = "stu_info_gddh";
            dt.Columns["手机号码"].ColumnName = "stu_info_phone";
            dt.Columns["家庭住址"].ColumnName = "stu_info_address";
            dt.Columns["联系人"].ColumnName = "stu_info_lxr";
            reportViewer1.LocalReport.ReportPath = GlobalVar.filePath + @"\bb\BbStuxx.rdlc";
            ReportDataSource rds = new ReportDataSource("stuInfoDs", dt);
            reportViewer1.LocalReport.DataSources.Add(rds);
        }

        private void FrmStuBb_Load(object sender, EventArgs e)
        {

            this.reportViewer1.RefreshReport();
        }
    }
}
